import { atom } from "recoil";

export const effectSetDemoState = atom({
  key: "effectSetDemo",
  default: "Hello, world!",
  effects: [
    ({ onSet }) => {
      onSet((newValue) => {
        console.log("Effect Set Demo: ", newValue);
      });
    },
  ],
});
